﻿using CommonEntity;
using CommonLibary;
using RabbitMQPlugin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace NetCroe6WebAPITestOneBusiness
{
    public class RabbitMQPublishBusiness : BaseBusiness
    {
        public RabbitMQPublishBusiness(LoggerSingletonHelper loggerSingletonHelper) : base(loggerSingletonHelper)
        {
        }

        /// <summary>
        ///
        /// </summary>
        /// <param name="message">消息：会带上时间</param>
        /// <param name="num">次数</param>
        /// <returns></returns>
        //public ViewModelBase DirectPublishMessage(string message, int num)
        //{
        //    for (var i = 0; i < num; i++)
        //    {
        //        new RabbitMQHelper().SendMessageDirect(message);
        //    }
        //    return new ViewModelBase()
        //    {
        //        code = HttpStatusCode.OK
        //    };
        //}
    }
}
